Skip to content

feat: #3001 add Modal sandbox idle timeout option#3005

Merged
seratch merged 1 commit into
mainfrom
feat/modal-idle-timeout
Apr 23, 2026
Merged

feat: #3001 add Modal sandbox idle timeout option#3005
seratch merged 1 commit into
mainfrom
feat/modal-idle-timeout

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 23, 2026

This pull request adds idle_timeout support to ModalSandboxClientOptions so Modal-backed sandbox sessions can configure Modal's inactivity shutdown window separately from the overall sandbox lifetime.

The change persists idle_timeout in ModalSandboxSessionState, passes it through to fresh Modal sandbox creation and snapshot filesystem restore creation, and preserves backwards-compatible deserialization for older state payloads where the field is absent. The new option is appended to the public constructor order to avoid changing existing positional argument meaning.

This pull request resolves #3001.

@seratch seratch added this to the 0.14.x milestone Apr 23, 2026
@seratch seratch merged commit 5be06a1 into main Apr 23, 2026
10 checks passed
@seratch seratch deleted the feat/modal-idle-timeout branch April 23, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

idle_timeout for Modal sandboxes

1 participant